#ifndef CHATLIST_H
#define CHATLIST_H

#include <QWidget>
#include<QNetworkAccessManager>//网络连接管理
#include<QFileDialog>
#include<QIODevice>
#include<QNetworkRequest>
#include<QNetworkReply>
#include<QFile>
#include"weather.h"
#include<QMouseEvent>
#include<QEvent>
#include<QObject>
#include<QToolButton>
#include<QTcpSocket>
#include<QVector>
#include"chat.h"
#include "mediaplay.h"
#include "xingzuo.h"
namespace Ui {
class chatlist;
}

class chatlist : public QWidget
{
    Q_OBJECT

public:
    explicit chatlist(QWidget *parent = nullptr);
    ~chatlist();
        Ui::chatlist *ui;
        QStringList chatname;
        QVector<QToolButton*> list;
        QVector<chat*> chatboxs;
        chat* chatbox;
        int membernum;

private slots:
    void on_close_clicked();

    void on_min_clicked();

    void on_weaicon_clicked();

    void on_net_3_clicked();

    void on_pushButton_8_clicked();

signals:
    void createchatbox(QString str);

private:

    weather wea;
    QPoint pxy;
    QStringList chaticon;
    mediaplay media;
    xingzuo xing;





   // QHoverEvent *hoverevent;
protected:
    void mouseMoveEvent(QMouseEvent *e);
    void mousePressEvent(QMouseEvent *e);




};

#endif // CHATLIST_H
